package com.zhike.common.constant;

/**
 * elasticsearch 相关常量
 */
public class EsConsts {

    public static class MessageIdx {

        /**
         * 索引名
         */
        public static final String INDEX_NAME = "message";

        /**
         * 消息内容
         */
        public static final String FIELD_MSG_CONTENT = "content";

        /**
         * 群ID
         */
        public static final String FIELD_GROUPID = "groupId";

        /**
         * 消息类型
         */
        public static final String FIELD_MSG_TYPE = "msgType";

        /**
         * 消息发送方UID
         */
        public static final String FIELD_MSG_SENDERUID = "senderUid";

        /**
         * 消息接收方UID
         */
        public static final String FIELD_MSG_RECEIVER = "receiver";
    }
}
